package com.liqi.question.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * @Author: lgh
 * @Date: 2023-02-23
 * @Description: 
 */
@ApiModel(value="com-liqi-question-domain-Question")
@Data
@TableName(value = "question")
public class Question {
    @TableId(value = "id", type = IdType.INPUT)
    @ApiModelProperty(value="")
    private Integer id;

    /**
     * 问题
     */
    @TableField(value = "question")
    @ApiModelProperty(value="问题",required = true)
    @NotBlank(message = "问题不能为空")
    private String question;

    /**
     * 回答
     */
    @TableField(value = "answer")
    @ApiModelProperty(value="回答",required = true)
    @NotBlank(message = "回答不能为空")
    private String answer;

    /**
     * 排序
     */
    @TableField(value = "sort")
    @ApiModelProperty(value="排序",required = true)
    @NotNull
    private Integer sort;
}